<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    var arr = [1,3,5,2,8,7,6,9];
    var max =arr[0];
    for(var i=0;i<arr.length;i++){
        if(max < arr[i]){
            max = arr[i];
        }
    }
    console.log(max);


    var min =arr[0];
    for(var i=0;i<arr.length;i++){
        if(min > arr[i]){
            min = arr[i];
        }
    }
    console.log(min);

    var cross =1;
    for(var i=0;i<arr.length;i++){
        cross*=arr[i];
    }
    console.log(cross);

    var sum =0;
    for(var i=0;i<arr.length;i++){
        sum += arr[i];
    }
    console.log(sum);
</script>
</body>
</html>